home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / alv.sun / alv.lha / src / p_init.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-08  |  729 b   |  39 lines

  1. /********************************* palette_init.c *************
  2.  * by Hsuan Chang (hsc%vanderbilt@csnet-relay)
  3.  * 7/1/87
  4.  *
  5.  * global variable initialization
  6.  */
  7. #include "p_include.h"
  8.  
  9. alette_init()
  10. {
  11.     int i;
  12.  
  13.     xoff            = 20;         
  14.     yoff            = 10;
  15.     xspace          = 10;
  16.     yspace          = 10;
  17.     cwidth          = 12;        /* was 25 */
  18.     cheight         = 12;        /* was 25 */
  19.  
  20.     bar_offset        = 30;
  21.  
  22.     undo_len = 0;
  23.     selected_i = 0;
  24.     selected_j = 0;
  25.     selected_n = 0;
  26.     hi = -9999;
  27.     hj = -9999;
  28.     highlighted = 0;
  29.     selected = FALSE;
  30.  
  31.     /* initial colormap: grey ramp */
  32.     for (i=0; i<MAX_CMAP_LEN; i++) {
  33.                r[i] = (unsigned char) i;
  34.                g[i] = (unsigned char) i;
  35.                b[i] = (unsigned char) i;
  36.     }
  37.  
  38. }
  39.